package com.fang.ssmhe.service;

import com.fang.ssmhe.bean.User;
import com.fang.ssmhe.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;


    public User findOne(User user) {
        return userMapper.findOne(user);
    }


    public int addOne(User user) {
        return userMapper.addOne(user);

    }

    public User checkReg(String username) {
        return userMapper.checkReg(username);
    }

}
